﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using JsonTest1.Configure;


namespace JasonPopupDemo.Data
{
    public class MainItems
    {


        
	public MainItems()
	{
        CreateData();
	}



    public ObservableCollection<MainItem> DataCollection { get; set; }
    private ObservableCollection<MainItem> CreateData()
	{
		//数据源1
        DataCollection = new ObservableCollection<MainItem>();
        DataCollection.Add(new MainItem("Browse Jamendo", "", Constants.TYPE_HEAD_BROSER));
        DataCollection.Add(new MainItem("Search", "../Images/list_search.png", Constants.TYPE_SEARCH));
        DataCollection.Add(new MainItem("Radio", "../Images/list_radio.png", Constants.TYPE_RADIO));
        DataCollection.Add(new MainItem("Most listened", "../Images/list_top.png", Constants.TYPE_LISTENED));
		
		
		
		//数据源2

        //数据源2
        //items = new List<MainItems>();
        DataCollection.Add(new MainItem("My Libary", "", Constants.TYPE_HEAD_LIBRARY));
        DataCollection.Add(new MainItem("Playlists", "../Images/list_playlist.png", Constants.TYPE_PLAYLIST));
        DataCollection.Add(new MainItem("Download", "../Images/list_download.png", Constants.TYPE_DOWNLOAD));
		
		return DataCollection;
	}

    }
}
